package com.aizhixin.lab.docker.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.UUID;

@Entity(name = "image_info")
@Data
public class ImageInfo {
    @Id
    private String id = UUID.randomUUID().toString();
    @Column(name = "image_name")
    private String imagesName;
    @Column(name = "image_desc")
    private String imageDesc;
    @Column(name = "vm_num")
    private Integer vmNum=1;
    @Column(name = "expire")
    private Long expire=5400L;
    @Column(name = "spec")
    private Integer spec=2;
    @Column(name = "over_sold")
    private Integer overSold=2;
    @Column(name = "create_by")
    private Long createBy;
//    @Column(name = "created_date")
//    private String createdDate;
}
